package com.mall.stock.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
public class StockController {


    @GetMapping("/reduce")
    public String reduce(){
        System.out.println("扣除库存");
        return "扣除库存";
    }

    @GetMapping("/query")
    public String query(){
        System.out.println("查询");
        return "库存数量";

    }

}
